﻿namespace eStock.DataObjects
{
    public class ComponentType
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public int ImgId { get; set; }
        public DBImage Image { get { return DatabaseObjects.Images != null ? DatabaseObjects.Images.GetById(ImgId) : null; } }
        public bool Smd { get; set; }
        public int CategoryId { get; set; }
        public ComponentCategory Category { get { return DatabaseObjects.Categories != null ? DatabaseObjects.Categories.GetById(CategoryId) : null; } }
        public string SerialNr { get; set; }
        public int Pins { get; set; }
    }
}
